/**
 * @description: 其他路由配置
 * @date: 2022-04-12 00:05
 */
import Layout from '../../components/layout/Index.vue'

export default [
  {
    path: '/login',
    name: 'Login',
    component: () => import('../../views/Login.vue')
  },
  {
    path: '',
    redirect: '/welcome',
    component: Layout,
    children: [
      {
        path: '/welcome',
        component: () => import('../../views/Welcome.vue'),
        meta: {
          title: '首页'
        }
      },
      {
        path: '/list',
        component: () => import('../../views/List.vue'),
        meta: {
          title: '表格页'
        }
      }
    ]
  },
  {
    path: '/:pathMatch(.*)*',
    component: () => import('../../views/404.vue')
  }
]
